import React, { Component } from 'react'

export default class Child extends Component {
  state = {
  /*   stus:[
      {id:'001',name:'tom',age:18},
      {id:'002',name:'tony',age:19},
      {id:'003',name:'jack',age:20}
    ] */
    stus:'abc'
  }
  render() {
    return (
      <div>
        <h2>我是Child组件</h2>
        {this.state.stus.map(item=><span key={item.id}>{item.name}--{item.age}</span>)}
      </div>
    )
  }
}
